﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Zeus.Biz.Northwind.DAL;
using Zeus.Biz.Northwind.Model;

namespace Zeus.Mvc.WebAPI.Controllers
{
    public class EmployeeController : ApiController
    {
        // GET api/employee
        public List<EmployeeModel> Get()
        {
            EmployeeDao dao = new EmployeeDao();
            List<EmployeeModel> employeeList = dao.GetAllEmployees();
            
            return employeeList;
        }

        // GET api/employee/5
        public EmployeeModel Get(int id)
        {
            EmployeeDao dao = new EmployeeDao();

            return dao.GetEmployeeById(id);
        }

        // POST api/employee
        public void Post(string value)
        {
        }

        // PUT api/employee/5
        public void Put(int id, string value)
        {
        }

        // DELETE api/employee/5
        public void Delete(int id)
        {
        }
    }
}
